package com.woniu.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.common.utils.ResponseData;
import com.woniu.product.pojo.ZyProductType;
import com.woniu.product.service.ZyProductTypeService;
import com.woniu.product.mapper.ZyProductTypeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ltyipx
* @description 针对表【zy_product_type】的数据库操作Service实现
* @createDate 2024-08-06 14:17:02
*/
@Service
public class ZyProductTypeServiceImpl extends ServiceImpl<ZyProductTypeMapper, ZyProductType>
    implements ZyProductTypeService{
    @Override
    public ResponseData<?> queryProductType() {
        List<ZyProductType> productTypeList = lambdaQuery()
                .eq(ZyProductType::getStatus, 1)
                .list();
        return new ResponseData<>().success(productTypeList);
    }
}




